package com.elitel.frame.base.controller;

import com.elitel.frame.base.service.CfgDbService;
import com.elitel.frame.main.entity.CfgDb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping
public class CfgDbController {

    @Autowired
    private CfgDbService cfgDbService;

    @RequestMapping("/cfgdb")
    @ResponseBody
    public Object getCfgdb(String key) {
        CfgDb cfgDb = cfgDbService.selectByKey(key);
        return cfgDb;
    }
}
